import request from '@/utils/request'

// 散户创建自己的机构账户
export function createMechanismProxy(data) {
  return request({
    url: '/proxy/createProxy',
    method: 'post',
    data
  })
}

// 代理机构升级自己的账户
export function renewchanismProxy(data) {
  return request({
    url: '/proxy/renewProxy',
    method: 'post',
    data
  })
}

// 申请退款
export function goNoCheck(query) {
  return request({
    url: '/proxy/refund',
    method: 'get',
    params: query
  })
}

// 查询图片
export function queryPicurl(query) {
  return request({
    url: '/proxy/queryPicurl',
    method: 'get',
    params: query
  })
}

// 查询支付状态
export function queryalipaystatus(query) {
  return request({
    url: '/proxy/queryAliPayStatus',
    method: 'get',
    params: query
  })
}
